#include"HosPartNode.h"
#include<iostream>
using namespace std;
class TreeNode {
public:
	HosPartNode data;
	TreeNode *leftChild, *next;
	TreeNode() {
		leftChild = next = NULL;
	}
	void setData(string name,int number) {
		data.name = name;
		data.number = number;
	}
	void insertLeftChild(TreeNode *l) {
		this->leftChild = l;
	}
	void insertNext(TreeNode *n) {
		this->next = n;
	}
	void print() {
		cout << data.name;
	}
	virtual ~TreeNode() {
		delete this->leftChild;
		delete this->next;
	}
};
